package view;

import java.util.Date;
import java.util.Vector;

public class FacturaView {

	private Date inicioPeriodo;
	private Date finPeriodo;
	private float importeTotal;
	//private Object detalleConsumos;
	private int idFactura;

	public FacturaView(int idFactura, Date inicioPeriodo, Date finPeriodo, float importeTotal,
			Vector<String> detalleConsumos) {
		this.idFactura = idFactura;
		this.inicioPeriodo = inicioPeriodo;
		this.finPeriodo = finPeriodo;
		this.importeTotal = importeTotal;
		//this.detalleConsumos = detalleConsumos;
	}

	public Vector toVector()
	{
		Vector v = new Vector();
		v.add(this.idFactura);
		v.add(this.inicioPeriodo.toString() + ' ' + this.finPeriodo.toString());
		v.add(this.importeTotal);
		return v;
	}

}
